package com.gitee.cui.springcloud.storage.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 库存操作数据库类
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022-03-26 15:14
 **/
@Mapper
public interface StorageDao {

	/**
	 * 更新库存信息
	 * @param productId 商品id
	 * @param count 减库存数量
	 */
	void update(@Param("productId") Long productId, @Param("count") Integer count);
}
